
<!doctype html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="canonical" href="https://getbootstrap.com/docs/3.4/examples/navbar-fixed-top/">

    <title>zzy-forum</title>

    <!-- Bootstrap core CSS -->
    <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.17/dist/css/bootstrap.min.css" rel="stylesheet">

    <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.17/assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">

    <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.17/examples/navbar-fixed-top/navbar-fixed-top.css" rel="stylesheet">

    <script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.17/assets/js/ie-emulation-modes-warning.js"></script>

  </head>

  <body>

    <!-- Fixed navbar -->
    <nav class="navbar navbar-default navbar-fixed-top">
      <div th:fragment="top">
        <div class="container">
          <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">zzy_forum</a>
          </div>
          <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
              <li class="active"><a href="/">主页</a></li>
              <li><a href="/getmessage">发布</a></li>
              <li><a href="/getfriend">关注</a></li>
              <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">我的 <span class="caret"></span></a>
                <ul class="dropdown-menu">
                  <li><a href="/getmyselfinfo ">个人信息</a></li>
                  <li><a href="/getother">我的博客</a></li>
                </ul>
              </li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
              <li><a href="/exit">退出</a></li>
              <li><a href="/getlogin">登录</a></li>
              <li class="active"><a href="/getregister">注册 <span class="sr-only">(current)</span></a></li>
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </nav>

    <div class="container">

      <!-- Main component for a primary marketing message or call to action -->
      <div class="jumbotron" th:each="blog:${blogs}">
        <h1 th:text="${blog.title}">标题</h1>
        <p th:text="${blog.intro}">介绍</p>
        <p th:text="${#dates.format(blog.createTime,'yyyy-MM-dd')}">时间</p>
        <p th:text="${blog.isLike}">点赞数</p>
        <p>
          <a class="btn btn-lg btn-primary" th:href="@{/blogs/del/}+${blog.id}" role="button">删除&raquo;</a>
          <a class="btn btn-lg btn-primary" th:href="@{/blogs/updatepage/}+${blog.id}" role="button">修改&raquo;</a>
        </p>
      </div>

      <div class="jumbotron" th:each="blog:${blogsList}">
        <h1 th:text="${blog.title}">标题</h1>
        <p th:text="${blog.intro}">介绍</p>
        <p th:text="${blog.createTime}">时间</p>
        <p th:text="${blog.isLike}">点赞数</p>
        <p>
          <a class="btn btn-lg btn-primary" th:href="@{/getdetail/}+${blog.id}" role="button">详情&raquo;</a>
        </p>
      </div>

    </div> <!-- /container -->

    <script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous"></script>
    <script>window.jQuery || document.write('<script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.17/assets/js/vendor/jquery.min.js"><\/script>')</script>
    <script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.17/dist/js/bootstrap.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.17/assets/js/ie10-viewport-bug-workaround.js"></script>
  </body>
</html>
